"Gsap Manu"
Bootstrap 4.1.1 Snippet by ALIMUL AL RAZY

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css">
<script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
<!------ Include the above in your HEAD tag ---------->
<div class="menu_btn" role="button"><a href="#" title="open menu">Menu</a></div>
<nav class="navigation" role="navigation">
<div class="panel panel--left">
<ul class="menu">
<li><a href="#" title="drinks"><span class="litem">Drinks</span></a>
<i class="line"></i>
</li>
<li><a href="#" title="food"><span class="litem">food</span></a>
<ul class="sub-menu">
<li><a href="#" title="Breakfast"><span class="litem">Breakfast</span></a></li>
<li><a href="#" title="Lunch"><span class="litem">Lunch</span></a></li>
<li><a href="#" title="Dinner"><span class="litem">Dinner</span></a></li>
</ul>
<i class="line"></i>
</li>
<li><a href="#" title="events"><span class="litem">events</span></a>
<i class="line"></i>
</li>
</ul>
<footer class="footer">
<span class="footer__gredits">developed by <a href="#" title="">Lynn</a></span>
<span class="footer__social"><a href="#" title="facebook">facebook</a> - <a href="#" title="instagram">instagram</a></span>
</footer>
</div>
<div class="panel panel--right">
<div class="close_btn"><a href="#">close</a></div>
<div class="data">
<div class="data__content">Lorem ipsum dolor sit amet, consectetur adipiscing elit. Maecenas egestas, nulla id tincidunt dignissim, magna magna imperdiet metus</div>
<div class="data__sub">"Nvagelis"</div>
</div>
</div>
</nav>
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
html {
box-sizing: border-box;
}
*, *:before, *:after {
box-sizing: inherit;
margin: 0;
padding: 0;
}
ul {
list-style: none;
margin: 0;
padding: 0;
}
a {
text-decoration: none;
}
body {
line-height: 1.4;
background-color: #292a2e;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
}
.menu_btn {
position: relative;
visibility: visible;
opacity: 1;
z-index: 20;
}
.menu_btn a {
font-size: 2em;
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
$(document).ready(function (){
var open_btn = $('.menu_btn');
var close_btn = $('.close_btn');
var panels = $('.panel');
var links = $('.litem');
var lines = $('.line');
var data_content = $('.data__content');
var data_sub = $('.data__sub');
var footer = $('.footer');
var tl = new TimelineLite({paused:true});
tl.to(panels, 0.5, {width: '50%'})
.to(open_btn, 0.5, {opacity: 0, visibility: 'hidden', 'z-index':0}, "-=0.5")
.to(data_content, 0.5, {y:0, opacity: 1})
.to(data_sub, 0.5, {y:0, opacity: 1}, "-=0.25")
.staggerTo(links, 0.3, {y:0}, 0.05, "-=0.75")
.to(lines, 0.5, {opacity: 1})
.to(footer, 0.5, {opacity: 1}, "-=0.5");
open_btn.on('click', function (e){
e.preventDefault();
tl.play();
});
close_btn.on('click', function (e){
e.preventDefault();
tl.reverse();
});
});
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX

Related: See More


Questions / Comments: